package com.cn.common.module.login.request;

import com.cn.common.core.serial.Serializer;

/**
 * 登录请求
 *
 */
public class LoginRequest extends Serializer{
	
	/**
	 * 用户名
	 */
	private String loginName;
	
	/**
	 * 密码
	 */
	private String token;

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	@Override
	protected void read() {
		this.loginName = readString();
		this.token = readString();
	}

	@Override
	protected void write() {
		writeString(loginName);
		writeString(token);
	}
}
